package Demo1;

public class Student {
    public int stdId;
    public String stdName;
//在继承关系当中子类的所有构造方法默认都调用父类的无参构造方法
    public Student(int stdId, String stdName) {
        this.stdId = stdId;
        this.stdName = stdName;
    }
}
